﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.Course>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create Course</h2>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Course</legend>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CourseName) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.CourseName, new { @class = "longTextField" })%>
            <%: Html.ValidationMessageFor(model => model.CourseName) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CourseDesciption) %>
        </div>
        <div class="editor-field">
            <%: Html.TextArea("CourseDesciption", Model.CourseDesciption, new { @class = "cdTextArea" })%>
            <%: Html.ValidationMessageFor(model => model.CourseDesciption) %>
        </div>
        <p>
        <%: Html.ActionLink("Cancel", "Index") %> 
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
